package com.lxl.config;

import java.io.File;

public class SystemConfig {

    public static final String FILE_SEPARATOR = File.separator;

    public static final String SUFFIX_JOB = ".kjb";
    public static final String SUFFIX_TRANS = ".ktr";
    public static final String SUFFIX_XML = ".xml";
    public static final String SUFFIX_JSON = ".json";
    public static final String SUFFIX_TEMPLATE = ".template";
    public static final String ETL_CONTEXT_NAME = "/funso";

    public static final int SERVER_BIO_PORT = 8504;
    public static final int SERVER_NIO_PORT = 8503;
    public static final long NIO_CONNECTOR_ASYNC_TIMEOUT = 20000L;
    public static final long SERVLET_ASYNC_TIMEOUT = 60000L;

    public static final String SERVER_ROOT_PATH = System.getProperty("user.dir") + FILE_SEPARATOR + "web" + FILE_SEPARATOR;
    public static final String SERVER_TEMP_PATH = SERVER_ROOT_PATH + "temp" + FILE_SEPARATOR;
    public static final String SERVER_CONFIG_PATH = SERVER_ROOT_PATH + "config" + FILE_SEPARATOR;
    public static final String SERVER_JOB_PATH = SERVER_ROOT_PATH + "job" + FILE_SEPARATOR;
    public static final String SERVER_TRANS_PATH = SERVER_ROOT_PATH + "trans" + FILE_SEPARATOR;

    /**
     * 日志类型-调试模式
     */
    public static final String DEBUG_LOG = "01";
    /**
     * 日志类型-生产模式
     */
    public static final String PROC_LOG = "02";
    /**
     * 日志类型-极简模式
     */
    public static final String SIMPLE_LOG = "03";

    /**
     * 消息队列-生产模式
     */
    public static final String QUEUE_PROC_NAME = "logs.proc";

    /**
     * 消息队列-极简模式
     */
    public static final String QUEUE_SIMPLE_NAME = "logs.simple";

    /**
     * 交换机
     */
    public static final String EXCHANGE_NAME = "direct_logs";
}
